<template>
  <!-- 抽离轮播图组件 -->
  <mt-swipe :auto="4000">
    <mt-swipe-item v-for="item in lunboList" :key="item.id">
      <img :src="(item.img || item.src)" alt :class="{full:isFull}">
    </mt-swipe-item>
  </mt-swipe>
</template>
<script>
export default {
    // 父组件向子组件传值
  props: ["lunboList", "isFull"]
};
</script>
<style lang="scss" scoped>
.mint-swipe {
  text-align: center;
  height: 250px;
  .mint-swipe-item {
    img {
        //图片默认宽度为自适应
      height: 100%;
    }
    .full {
      width: 100%;
    }
  }
}
</style>
